



INCS += -Ilvgl/	\
	    -Ilvgl/lvgl/ \
	    -Ilvgl/lvgl/src/lv_core \
	    -Ilvgl/lvgl/src/lv_draw \
	    -Ilvgl/lvgl/src/lv_font \
	    -Ilvgl/lvgl/src/lv_hal \
	    -Ilvgl/lvgl/src/lv_misc \
	    -Ilvgl/lvgl/src/lv_objx \
	    -Ilvgl/lvgl/src/lv_themes \
	    -Ilvgl/lvgl_driver \
		-Ilvgl/lv_examples/lv_apps/benchmark \
		-Ilvgl/lv_examples/lv_tutorial/10_keyboard \
		-Igui \
		-I./



# OBJS += gui/ui_core.o
# OBJS += gui/ui_dev.o
# OBJS += gui/ui_draw_img.o
# # OBJS += gui/ui_draw_img.o
# # OBJS += gui/ui_drawfont.o
# # OBJS += gui/ui_drawfont.o
# OBJS += gui/ui_image.o
# # OBJS += gui/ui_image.o
# OBJS += gui/ui_imgbtn.o
# OBJS += gui/ui_imgbtn.oo
# OBJS += gui/ui_label.o
# OBJS += gui/ui_label.o
# OBJS += gui/ui_numinput.o
# OBJS += gui/ui_numinput.o
# OBJS += lvgl/lv_examples/lv_apps/benchmark/benchmark.o
# OBJS += lvgl/lv_examples/lv_apps/benchmark/benchmark_bg.o
OBJS += lvgl/lv_examples/lv_tutorial/10_keyboard/lv_tutorial_keyboard.o

OBJS += lvgl/lvgl/src/lv_core/lv_group.o
OBJS += lvgl/lvgl/src/lv_core/lv_indev.o
OBJS += lvgl/lvgl/src/lv_core/lv_disp.o
OBJS += lvgl/lvgl/src/lv_core/lv_obj.o
OBJS += lvgl/lvgl/src/lv_core/lv_refr.o
OBJS += lvgl/lvgl/src/lv_core/lv_style.o


OBJS += lvgl/lvgl/src/lv_draw/lv_draw_basic.o
OBJS += lvgl/lvgl/src/lv_draw/lv_draw.o
OBJS += lvgl/lvgl/src/lv_draw/lv_draw_rect.o
OBJS += lvgl/lvgl/src/lv_draw/lv_draw_label.o
OBJS += lvgl/lvgl/src/lv_draw/lv_draw_line.o
OBJS += lvgl/lvgl/src/lv_draw/lv_draw_img.o
OBJS += lvgl/lvgl/src/lv_draw/lv_draw_arc.o
OBJS += lvgl/lvgl/src/lv_draw/lv_draw_triangle.o
OBJS += lvgl/lvgl/src/lv_draw/lv_img_decoder.o
OBJS += lvgl/lvgl/src/lv_draw/lv_img_cache.o


OBJS += lvgl/lvgl/src/lv_font/lv_font.o
OBJS += lvgl/lvgl/src/lv_font/lv_font_fmt_txt.o
OBJS += lvgl/lvgl/src/lv_font/lv_font_roboto_12.o
OBJS += lvgl/lvgl/src/lv_font/lv_font_roboto_16.o
OBJS += lvgl/lvgl/src/lv_font/lv_font_roboto_22.o
OBJS += lvgl/lvgl/src/lv_font/lv_font_roboto_28.o
OBJS += lvgl/lvgl/src/lv_font/lv_font_unscii_8.o
#OBJS += lvgl/lvgl/src/lv_font/my_font.o

OBJS += lvgl/lvgl/src/lv_hal/lv_hal_disp.o
OBJS += lvgl/lvgl/src/lv_hal/lv_hal_indev.o
OBJS += lvgl/lvgl/src/lv_hal/lv_hal_tick.o


OBJS += lvgl/lvgl/src/lv_misc/lv_circ.o
OBJS += lvgl/lvgl/src/lv_misc/lv_area.o
OBJS += lvgl/lvgl/src/lv_misc/lv_task.o
OBJS += lvgl/lvgl/src/lv_misc/lv_fs.o
OBJS += lvgl/lvgl/src/lv_misc/lv_anim.o
OBJS += lvgl/lvgl/src/lv_misc/lv_mem.o
OBJS += lvgl/lvgl/src/lv_misc/lv_ll.o
OBJS += lvgl/lvgl/src/lv_misc/lv_color.o
OBJS += lvgl/lvgl/src/lv_misc/lv_txt.o
OBJS += lvgl/lvgl/src/lv_misc/lv_math.o
OBJS += lvgl/lvgl/src/lv_misc/lv_log.o
OBJS += lvgl/lvgl/src/lv_misc/lv_gc.o
OBJS += lvgl/lvgl/src/lv_misc/lv_utils.o
OBJS += lvgl/lvgl/src/lv_misc/lv_async.o


OBJS += lvgl/lvgl/src/lv_objx/lv_arc.o
OBJS += lvgl/lvgl/src/lv_objx/lv_bar.o
OBJS += lvgl/lvgl/src/lv_objx/lv_cb.o
OBJS += lvgl/lvgl/src/lv_objx/lv_ddlist.o
OBJS += lvgl/lvgl/src/lv_objx/lv_kb.o
OBJS += lvgl/lvgl/src/lv_objx/lv_line.o
OBJS += lvgl/lvgl/src/lv_objx/lv_mbox.o
OBJS += lvgl/lvgl/src/lv_objx/lv_preload.o
OBJS += lvgl/lvgl/src/lv_objx/lv_roller.o
OBJS += lvgl/lvgl/src/lv_objx/lv_table.o
OBJS += lvgl/lvgl/src/lv_objx/lv_tabview.o
OBJS += lvgl/lvgl/src/lv_objx/lv_tileview.o
OBJS += lvgl/lvgl/src/lv_objx/lv_btn.o
OBJS += lvgl/lvgl/src/lv_objx/lv_calendar.o
OBJS += lvgl/lvgl/src/lv_objx/lv_chart.o
OBJS += lvgl/lvgl/src/lv_objx/lv_canvas.o
OBJS += lvgl/lvgl/src/lv_objx/lv_gauge.o
OBJS += lvgl/lvgl/src/lv_objx/lv_label.o
OBJS += lvgl/lvgl/src/lv_objx/lv_list.o
OBJS += lvgl/lvgl/src/lv_objx/lv_slider.o
OBJS += lvgl/lvgl/src/lv_objx/lv_ta.o
OBJS += lvgl/lvgl/src/lv_objx/lv_spinbox.o
OBJS += lvgl/lvgl/src/lv_objx/lv_btnm.o
OBJS += lvgl/lvgl/src/lv_objx/lv_cont.o
OBJS += lvgl/lvgl/src/lv_objx/lv_img.o
OBJS += lvgl/lvgl/src/lv_objx/lv_imgbtn.o
OBJS += lvgl/lvgl/src/lv_objx/lv_led.o
OBJS += lvgl/lvgl/src/lv_objx/lv_lmeter.o
OBJS += lvgl/lvgl/src/lv_objx/lv_page.o
OBJS += lvgl/lvgl/src/lv_objx/lv_sw.o
OBJS += lvgl/lvgl/src/lv_objx/lv_win.o


OBJS += lvgl/lvgl/src/lv_themes/lv_theme_alien.o
OBJS += lvgl/lvgl/src/lv_themes/lv_theme.o
OBJS += lvgl/lvgl/src/lv_themes/lv_theme_default.o
OBJS += lvgl/lvgl/src/lv_themes/lv_theme_night.o
OBJS += lvgl/lvgl/src/lv_themes/lv_theme_templ.o
OBJS += lvgl/lvgl/src/lv_themes/lv_theme_zen.o
OBJS += lvgl/lvgl/src/lv_themes/lv_theme_material.o
OBJS += lvgl/lvgl/src/lv_themes/lv_theme_nemo.o
OBJS += lvgl/lvgl/src/lv_themes/lv_theme_mono.o

OBJS += lvgl/lvgl_driver/lv_port_disp.o
OBJS += lvgl/lvgl_driver/lv_port_indev.o

OBJS += netconnect.o
OBJS += protocol.o
OBJS += gui_keyboard_lv.o
OBJS += main.o

#DEFS += -D _GCC_


CFLAGS += -O0 -g -std=c99 -pthread


LFLAGS += -g -pthread


BUILDTOOLS = gcc

TARGET = project

all:$(TARGET)

$(TARGET):$(OBJS)
	@echo exe $@
	@$(BUILDTOOLS) $(CFLAGS) $(LFLAGS) $^ -o $@

%.o:%.c
	@echo cc:$@
	@$(BUILDTOOLS) $(CFLAGS) $(INCS) -c $< -o $@

clean:
	find . -name "*.o" | xargs rm -f
	rm project
	



